first law of thermodynamics example